<%
    /**
     * 初始化打印列
     *
     * created by amon 2005-12-21
     */
%>
<%@ include file = "/common/ini.jsp"%>
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%> 
<%@ include file = "/common/_currUser_Infor.jsp"%>
<%@ include file = "/common/params/_getParamsInSession.jsp"%>
<%@ include file = "/common/params/iniParamsForm.jsp"%>
<%@ include file = "/common/List/print/getTitleAndList.jsp"%>
<%
    String userId = currUser.getId();
    ServiceTO serviceTO = (ServiceTO)request.getAttribute("serviceTO");
%>
<%@ include file = "/common/List/_configColumn/getCurrServiceColumnConfig.jsp" %>
<HTML xmlns:fc>
<title>打印</title>
<HEAD>
<STYLE>
  fc\:webprint 
  {
    behavior: url("/webprint/webgrid.htc") ;
  }
</STYLE>

</HEAD>
<BODY onload="window_onload()" bgcolor="E4E4E4">
<BR>
<input type=button value="打印预览" onclick="grid.print()"  >
<input type=button value="返回" onclick="window.close()"  >
<BR>
<BR>
<fc:webprint id="grid" >
<table id=t cellPadding=0 cellSpacing=0  frame=box style="BORDER-COLLAPSE: collapse; FONT-SIZE: 13px;   LEFT: 0px; POSITION:  absolute; TABLE-LAYOUT: fixed; TOP: 0px;" bgColor=white borderColor=black >
<%@ include file = "/common/List/print/outPrintTitles.jsp"%>
<%@ include file = "/common/List/print/outPrintItems.jsp"%>
</table>
</fc:webprint>
<BR>
<input type=button value="打印预览" onclick="grid.print()"  >
<input type=button value="返回" onclick="window.close()"  >

<SCRIPT ID="clientEventHandlersJS" LANGUAGE=javascript>
<!--
function window_onload() 
{
	grid.hideVscroll=true
	grid.hideHscroll=true
	grid.autosize=true
    //设置页码	
	grid.prn.top11="制表人:<%= currUser.getName()%>"
    grid.prn.top12="制表时间:(yyyy)-(MM)-(dd) (hh):(mm)"
    grid.prn.top13="页码:(p)/(P)"
    <%
    // 取标题名
        FIArea fiArea = (FIArea)request.getAttribute("viewer");
        logger.debug("  -- 取功能切换区");
        List fis = fiArea.getChanges(request.getContextPath());
        logger.debug("  -- 显示功能切换明细");
        for(int i = 0; i < fis.size(); i ++)
        {
            FuncItem fi = (FuncItem)fis.get(i);
            if(fi.isFocus())
            {
                %>grid.prn.title1="<%=  fi.getText()%>";<%
                break;
            }// if
        }    
    %>
    //设置下面此行的作用是：在客户端设置的信息会保存下来。,郁闷,连时间都保存下来了	
	grid.prn.changeUserDate=false;
	grid.prn.ReportName="<%= serviceURL + "_" + userId %>";	
    grid.FixRows=<%= maxDepth%>;
}
//-->
</SCRIPT>
</BODY>
</HTML>
